package com.sjft.cloud.commons.support.datamodel.core.prop;

import com.sjft.cloud.commons.support.datamodel.core.ModelFieldProp;
import com.sjft.cloud.commons.support.datamodel.core.rule.RadioRule;
import com.sjft.cloud.commons.support.datamodel.core.value.RadioValue;
import com.sjft.cloud.commons.support.datamodel.enums.ModelFieldTypeEnum;
import com.sjft.cloud.commons.support.datamodel.enums.MysqlColumnTypeEnum;
import lombok.Getter;
import lombok.Setter;

/**
 * RadioType
 *
 * @author Jin
 */
@Getter
@Setter
public class RadioProp implements ModelFieldProp<RadioRule, RadioValue> {
    private String name = ModelFieldTypeEnum.RADIO_NAME;
    private String columnType = MysqlColumnTypeEnum.VARCHAR.getCode();
    private Integer length = 64;
    private Boolean autoIncrement = false;
    private String defaultValue = "";
    private Boolean notNull = false;
    private Boolean primaryKey = false;

    private RadioRule rule = new RadioRule();
    private RadioValue value = new RadioValue();

}
